package viqiang.ye.mallpuny.nosql.elasticsearch.document.mongodb.document.repository;

import org.springframework.data.mongodb.repository.MongoRepository;
import viqiang.ye.mallpuny.nosql.elasticsearch.document.mongodb.document.MemberReadHistory;

import java.util.List;

public interface MemberReadHistoryRepository extends MongoRepository<MemberReadHistory, String> {

    /**
     * 根据会员id按时间倒序获取浏览记录
     * @param memberId 会员id
     */
    List<MemberReadHistory> findByMemberIdOrderByCreateTimeDesc(Long memberId);

}
